package com.test.controller;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

/**
 * Created by Administrator on 2017/4/24.
 */
public class DateUtils {

    public static List<Integer> getYears(){
        List<Integer> list = new ArrayList<Integer>();
        Calendar a= Calendar.getInstance();
        int current = a.get(Calendar.YEAR);
        for(int i=current; i>=2015; i--){
            list.add(i);
        }
        return list;
    }

    public static List<Integer> getMonths(){
        List<Integer> list = new ArrayList<Integer>();

        for(int i=1; i<=12; i++){
            list.add(i);
        }
        return list;
    }


}
